import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("sys_config", { schema: "bacsense_water" })
export class SysConfig {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("varchar", { name: "name", length: 50 })
  name: string;

  @Column("varchar", { name: "code", length: 50, default: () => "'编码'" })
  code: string;

  @Column("json", { name: "config", nullable: true, comment: "配置" })
  config: object | null;
}
